Subject: Help with datestamps
From: [email-masked]
To: [email-masked] (Amiga-E List)
Date: Wed, 21 Jul 1993 19:11:13 -0400 (EDT)

I hope someone can help me with this problem...I can't seem to get
DateStamp and DateToStr working right <sigh>.  I keep on getting an
'illegal use of/reference to object' on this line:

    date.stamp := New(SIZEOF datestamp)

----8<----8<----

MODULE 'dos/dos', 'dos/datetime'

PROC main()

DEF date : PTR TO datetime,
    s[10] : ARRAY OF CHAR

    date := New(SIZEOF datetime)
    date.stamp := New(SIZEOF datestamp)
    date.stamp := DateStamp(date.stamp)
    date.strdate := s
    DateToStr(date)
    WriteF('date: \s\n',s)

ENDPROC

----8<----8<----